package Jche.Zuoye;

public class Yuan {
    private double bj;
    private static double yzl=3.14;

    public double getBj() {
        return bj;
    }

    public void setBj(double bj) {
        this.bj = bj;
    }

    public static double getYzl() {
        return yzl;
    }

    public static void setYzl(double yzl) {
        Yuan.yzl = yzl;
    }
    public double zc(){
        double zc;
        zc=2*bj*yzl;
        System.out.println("半径为："+bj+"的周长为："+zc);
        return zc;
    }
    public  double  mj(){
        double mj;
        mj=bj*bj*yzl;
        System.out.println("半径为:"+bj+"的面积"+mj);
        return  mj;
    }
}
